/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package plar.Elements;

/**
 *
 * @author spok
 */
import java.awt.Point;
import java.awt.Rectangle;
import plar.*;
import plar.Actions.*;

        
public class Block extends Element {
        
        public Block()
        {
   
            super();
            setSize(64,109);
            properties.put("type", ElementType.Block);
            newAction("collision", new Collision(this,"road",new Rectangle(0,60,64,109)));
            getAction("show").setSprites(new Sprites(new Sprite("block.png")));
        }
        
        public Block(Point pos)
        {
            this();
            setPosition(pos);
           
        }


}
